home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / othergnu / indent~1.zoo / changelo < prev    next >
Encoding:
Text File  |  1992-08-06  |  16.0 KB  |  429 lines

  1. Mon Aug  3 21:14:40 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  2.  
  3.     * indent.c (indent): In case rparen, removed the change of Jul 28.
  4.     This is now done if the case mask fails and
  5.     parser_state_tos->in_decl is true and ..->block_init is false.
  6.     The old change broke the "-ncs" feature.  Perhaps this could have
  7.     been done otherwise by using ..->last_u_d.
  8.     Also, decrement `parser_state_tos->paren_depth' immediatly.
  9.  
  10.     * All source files formatted with ./indent.
  11.  
  12.     * pr_comment.c (pr_comment): If `parser_state_tos->box_com' is set
  13.     (which means that the comment is presumed to be hand-formatted),
  14.     set `parser_state_tos->n_comment_delta' to
  15.     (1 - parser_state_tos->com_col), rather than using `count_spaces'
  16.     to calculate the space up to the comment column.  Not only is this
  17.     simpler, but the old code used `cur_line' to count those spaces,
  18.     which was pointing to the *NEXT* line in some cases (because some
  19.     code in indent () which ignored newlines (like in the case of
  20.     multi-line comments after #define statments) called fill_buffer ()).
  21.     Another example of just how brain damaged this code is.  For more
  22.     extreme self-abuse, look a the interaction between pr_comment ()
  23.     and dump_line ().
  24.  
  25. Sun Aug  2 02:10:32 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  26.  
  27.     * pr_comment.c (pr_comment): When computing
  28.     `parser_state_tos->com_col' for beyond the normal comment
  29.     position, use (tabsize - 1) instead of 7.
  30.  
  31. Wed Jul 29 22:50:45 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  32.  
  33.     * lexi.c (lexi): If `buf_ptr' == '(' after scanning an alphanum
  34.     which is not a keyword, add clause that paren_depth must be 0
  35.     before considering this as a possible function definition.
  36.  
  37. Tue Jul 28 17:17:08 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  38.  
  39.     * parse.c (parse): In case lbrace, handle state of being in a decl
  40.     specially: If this brace succedes a struct-like thing and it goes
  41.     on a line by itself (! btype_2), then add `brace_indent' to the
  42.     amount of indentation.  This make GNU-style indentation of
  43.     structures, etc. work properly.
  44.  
  45.     * indent.c (indent): In case rparen, if not the beginning of the
  46.     code, and in_decl, set `parser_state_tos->want_blank'.  This is to
  47.     handle ensure a space before the last rparen of cases like
  48.     "int (*fp ()) ()".
  49.  
  50. Fri Jul 24 18:53:15 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  51.  
  52.     * indent.c: Changes to handle spaces between options and their
  53.     values.  It would be better to use `getopt', but this change is
  54.     much simpler.
  55.     Declaration of `set_option' changed to return int.
  56.     (main): Increment `i' by the value of `set_option ()'; also, pass
  57.     argv[i + 1] as second parameter to `set_option'.
  58.     * args.c (set_option): Take new parameter `param'.
  59.     New label `arg_missing', just before label `found', to handle
  60.     missing option value error.
  61.     If `param_start' is 0, set it to `param'.
  62.     (scan_profile): Rewritten to look at two entries at once, and pass
  63.     both to `set_option'.
  64.  
  65. Wed Jul 22 15:55:56 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  66.  
  67.     * indent.c (indent): In case lbrace, set
  68.     `parser_state_tos->want_blank' under certain conditions if not at
  69.     beginning of line and `btype_2' was specified.
  70.  
  71.     * indent.c: Macro `need_chars' moved here from indent.h.
  72.  
  73.     * io.c (read_file, read_stdin): No longer appends " \n" to the end
  74.     of the file, which is now simply delimited with '\0'.  xmalloc 2
  75.     less bytes for the buffer.
  76.     (fill_buffer): Stop and set `had_eof' when '\0' is
  77.     encountered in the file text, then return immediately.
  78.     * lexi.c (lexi): New case in main switch statement for '\0', which
  79.     indicates eof.  Removed code to set this in case '\n'.
  80.  
  81. Fri Jul 10 14:45:25 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  82.  
  83.     * lexi.c (): If keyword "struct" was found inside of parens
  84.     (case rw_struct_like:) set parser_state_tos->cast_mask before
  85.     breaking.
  86.  
  87. Wed Jul  8 21:11:01 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  88.  
  89.     * lexi.c (lexi): Accept 'U' and "UL" suffixes on integer
  90.     constants.
  91.  
  92. Fri Jul  3 16:05:45 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  93.  
  94.     * indent.c (indent): For cases unare_op and comma, don't space out
  95.     to decl_indent (dec_indent) if we are inside parens
  96.     (parser_state_tos->paren_depth > 0).
  97.  
  98. Thu Jul  2 13:36:50 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  99.  
  100.     * indent.c (indent): In case rparen, if paren starts the line,
  101.     check that paren_level is greater than zero before using it to
  102.     index `paren_indents'.
  103.  
  104.     * args.c: New variable `leave_preproc_space'.  Set by new option
  105.     "-lps".
  106.     * indent.h: Declare `leave_preproc_space'.
  107.     * indent.c (indent): In case preesc, don't ignore blanks after '#'
  108.     if `leave_preproc_space' is set.
  109.     * indent.texinfo: Entries added for new option "-lps".
  110.  
  111.     * indent.c: At the end of case preesc, call dump_line() if this
  112.     appears to be a case where it won't get called when processing the
  113.     newline character.
  114.  
  115. Wed Jul  1 16:12:57 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  116.  
  117.     * lexi.c (hash, is_reserved): Regenerated (from gperf) with new
  118.     words "volatile" and "const".
  119.  
  120.     * args.c: Removed the trailing comma from the last element of enum
  121.     profile.  This breaks some compilers.
  122.  
  123.     * Makefile: Changed to drive the configuration process.
  124.     * zmakefile.in: Renamed from Makefile.in
  125.     * CONF-README: Renamed from INSTALL
  126.  
  127. Tue Jun 30 21:34:16 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  128.  
  129.     * globs.c (mymemcpy): Function deleted.
  130.     * sys.h: Declarations and defines for mymemcpy, etc, removed.
  131.     * indent_globs.h: All references to memcpy removed.
  132.     * backup.c: `mymemcpy' changed to `memcpy'.
  133.     * indent.c: Ditto.
  134.     * io.c: Ditto.
  135.  
  136.     * Makefile.in:
  137.     * INSTALL:
  138.     * configure:
  139.     * configure.in:
  140.     * memcpy.c:     New files.
  141.  
  142. Sun Jun 14 13:38:12 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  143.  
  144.     * Version 1.4 released.
  145.  
  146. Fri Jun 12 15:02:37 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  147.  
  148.     * globs.c (mymemcpy): Now a void function.  Don't return anything.
  149.  
  150.     * io.c (dump_line): When printing label, use `tabsize' to
  151.     increment target if `com_st' contains tabs.  Also use
  152.     `tabsize' to calculate target when it's less than zero.
  153.  
  154. Thu Jun 11 20:27:48 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  155.  
  156.     * indent.c (indent): When token_type is a binary_op, if
  157.     parser_state_tos->want_blank is not true, but the preceding
  158.     character is not a space, put one on the line.
  159.  
  160.     * Removed variable `sccsid' from all files.
  161.  
  162. Wed Jun 10 13:00:26 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  163.  
  164.     * args.c: Added long option name "dont-space-special-semicolon"
  165.     for -nss.
  166.  
  167. Tue Jun  9 13:01:21 1992  Joseph Arceneaux  (jla@geech.gnu.ai.mit.edu)
  168.  
  169.     * Makefile: Automatically make the files README and RELEASE-NOTES.
  170.  
  171.     * sys.h: Provide defines for using memcpy or bcopy.
  172.  
  173.     * globs.c: `mymemcpy ()' only defined #ifndef mymemcpy.
  174.  
  175.     * indent.c (main): Set `in_name' to the current input file name.
  176.  
  177.     * io.c (dumpline): Check parser_state_tos->paren_level before
  178.     using it to index parser_state_tos->paren_indents.
  179.  
  180. Mon Jun  8 17:55:07 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  181.  
  182.     * lexi.c (lexi): In conditional (paren_count == 0), add '=' to the
  183.     characters (along with ';', ',', and '(') which constitute a
  184.     function definition.  This was to cause an ugly declaration from
  185.     libc ("int (*foo) __P ((int bar)) = bax;") to remain on one line.
  186.     Note that this is not valid C.
  187.  
  188.     * indent.c (main): When indenting multiple output files, make sure
  189.     to close each output file before continuing.
  190.  
  191. Fri Jun  5 13:56:54 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  192.  
  193.     * io.c (read_file): Use mymemcpy() instead of bcopy();
  194.  
  195.     * backup.c (max_version):  Don't free dirname unless it was malloc'd.
  196.  
  197. Wed May  6 02:01:18 1992  Joseph Arceneaux  (jla@geech.gnu.ai.mit.edu)
  198.  
  199.     * Version 1.3 released.
  200.  
  201.     * indent.texinfo:  Reorganization of the "Invocation" part, and a
  202.     new menu entry "Backup files", as well as corrections throughout.
  203.     A new option "nip" added.
  204.  
  205.     * indent.c (main): New variable `using_stdin', used to indicate
  206.     when `-' was specified on the command line.
  207.  
  208. Tue May  5 21:28:06 1992  Joseph Arceneaux  (jla@geech.gnu.ai.mit.edu)
  209.  
  210.     * args.c: Set default for `decl_com_ind' to 33.  If
  211.     BERKELEY_DEFAULTS is defined, default `continuation_indent' to 4.
  212.  
  213. Sun May  3 00:43:10 1992  Joseph Arceneaux  (jla at hugo)
  214.  
  215.     * parse.c (reduce):  when reducing <stmt><dolit>,
  216.     do set i_l_follow to il[parser_state_tos].  This was removed
  217.     earlier after a new reduction was added, but this obviously fixes
  218.     some bugs.  It will stay if indent passes all the old tests.
  219.  
  220.     * args.c (set_option):  When calling `addkey' to add a user
  221.     identifier, make it type 'rw_decl' since these are supposed to be
  222.     typedef identifiers.
  223.     Removed "-d4" spec in "-orig" option settings.
  224.     Made default for "-fca" be false.
  225.  
  226.     * args.c (set_profile): Only read one profile.  The one in the
  227.     current directory has priority.  Return the path of the profile read.
  228.     * indent.c (main): If `verbose' and we've read a profile, tell the
  229.     user on the stderr.
  230.  
  231. Sat May  2 18:33:14 1992  Joseph Arceneaux  (jla at hugo)
  232.  
  233.     * args.c: `Bill_Shannon' replaced with `blank_after_sizeof'.
  234.     indent.c: Likewise.
  235.     indent.h: Likewise.
  236.  
  237.     * args.c: New variable, exp_nip, for new option "-nip", which is
  238.     equivalent to "-ip0".  Long option name is
  239.     "no-parameter-indentation".
  240.  
  241.     * config.sh: New shell script which generates "dirent_def.h", and
  242.     include file with directory reading definitions.
  243.     * Makefile:  Take "config.sh" and "dirent_def.h" into account.
  244.  
  245.     * backup.c: Make only simple backups if we can't read directories
  246.     (NODIR is defined).  Functions for numbered backups conditionally
  247.     defined.
  248.     Documented all functions.
  249.  
  250.     * indent_globs.h:  Broken into two new files, indent.h and sys.h.
  251.     All files changed accordingly, including the Makefile.
  252.  
  253. Thu Apr 30 14:53:33 1992  Joseph Arceneaux  (jla at hugo)
  254.  
  255.     * backup.c, backup.h: New files with backup routines.
  256.     * io.c (make_backup): Moved into backup.c.
  257.     * io.c (sys_error): No longer static, called from make_backup.
  258.  
  259. Wed Apr 29 14:56:10 1992  Joseph Arceneaux  (jla at hugo)
  260.  
  261.     * args.c: Make default value for `else_endif_col' 1, as in "-gnu"
  262.     settings.
  263.  
  264. Tue Apr 28 23:18:07 1992  Joseph Arceneaux  (jla at hugo)
  265.  
  266.     * indent.c (main):  Only output to stdout if stdin is used and no
  267.     output file is specified, or one input stream is used and -st is
  268.     specified.
  269.     * args.c: New variable `use_stdout' set with option "-st".
  270.     * indent_globs.h: Declare `use_stdout'.
  271.  
  272. Sun Mar 22 14:59:35 1992  Joseph Arceneaux  (jla at hugo)
  273.  
  274.     * parse.c (init_parser, reset_parser):  Two new functions which
  275.     respectively allocate the neccessary parser data structures, and
  276.     initialize the parser state.
  277.     * indent.c (indent): New function which does the actual indenting
  278.     of it's input, which comes in the form of a file_buffer pointer.
  279.     (main): Command line scan changed to use new option "-o" and read
  280.     possibly multiple files into new variable `in_file_names'.
  281.     Main body changed to use new `indent' function on possibly
  282.     multiple files, and accomodate default standard io specification.
  283.  
  284.     * io.c (make_backup, read_file, read_stdin):  All file io routines
  285.     rewritten (`make_backup' formerly `bakcopy').  read routines
  286.     return pointer to new structure 'file_buffer'.
  287.     `make_backup' only makes backup file, no longer sets up original
  288.     file for writing.
  289.     * indent_globs.h:  Declare struct file_buffer, and io routines.
  290.  
  291. Fri Mar 20 18:33:18 1992  Joseph Arceneaux  (jla at hugo)
  292.  
  293.     * args.c: Option "-st" and associated variable `use_stdinout'
  294.     removed.  Option "-o" and associated variable `expect_output_file'
  295.     added.
  296.  
  297. Mon Feb  3 20:22:04 1992  Joseph Arceneaux  (jla at churchy.gnu.ai.mit.edu)
  298.  
  299.     * args.c: If BERKELEY_DEFAULTS is defined, use the original
  300.     defaults rather than GNU style.
  301.  
  302.     * Version 1.2 released.
  303.  
  304. Thu Jan 23 14:02:06 1992  Joseph Arceneaux  (jla at wombat.gnu.ai.mit.edu)
  305.  
  306.     * Makefile: info version of manual included in distribution.
  307.  
  308.     * args.c: New long options "berkeley-style", "berkeley" added
  309.     which correspond to original style.
  310.  
  311.     * lexi.c ():  Added explicit parens in checks for alphanums.
  312.     * indent.c (main):  On switch default when searching brace, added
  313.     explicit parens to 2nd if statment.
  314.     * indent_globs.h, io.c: Made variable `in_prog_size' unsigned.
  315.          
  316. Wed Jan 15 11:59:35 1992  Joseph Arceneaux  (jla at hugo)
  317.  
  318.     * args.c:  Accept "-gnu" option.
  319.  
  320.     * indent.c (main): In case rbrace, don't use ind_level and il[tos]
  321.     as criteria for setting search_brace.  This allows "-ce" to work
  322.     more strictly.
  323.  
  324.     * indent.c (main): In case lparen, let '(' after an ident which is
  325.     rw_return begin casts.
  326.     * lexi.c (lexi): If ident was a reserved word, save it in
  327.     parser_state_tos->last_rw.
  328.     Changed "return" from `rw_break' to new enum element `rw_return'.
  329.     * indent_globs.h: Moved type "enum codes" to this file from
  330.     lexi.c.  New element of parser state `last_rw'.
  331.  
  332. Sun Jan 12 01:40:23 1992  Joseph Arceneaux  (jla at hugo)
  333.  
  334.     * lexi.c (lexi): if in decl and looking at '(', additionally
  335.     accept, after closing ')',  '(' as constituting a function
  336.     declaration (along with ';' and ',').
  337.  
  338. Thu Jan  9 18:31:44 1992  Joseph Arceneaux  (jla at hugo)
  339.  
  340.     * io.c (dump_line):  When outputting nonblank lines, if
  341.     n_real_blanklines is > 1 and swallow_optional_blanklines is set,
  342.     make n_real_blanklines 1.
  343.  
  344. Wed Jan  8 10:06:43 1992  Joseph Arceneaux  (jla at hugo)
  345.  
  346.     * args.c (option_prefix):  New function to recognize option prefix
  347.     from table.  Now handles both "+" and "--" for long option prefixes.
  348.  
  349. Mon Jan  6 01:15:29 1992  Joseph Arceneaux  (jla at hugo)
  350.  
  351.     * Makefile:  Made more compatible with GNU standards.  Unix man
  352.     file removed from distribution.
  353.  
  354. Fri Dec 27 14:58:13 1991  Joseph Arceneaux  (jla at hugo)
  355.  
  356.     * parse.c:  Correctly handle "do ... while" statements, using new
  357.     stack symbol DOSTMT.
  358.     (parse):  For semicolon, if code DOSTMT is top of stack, replace it
  359.     with STMT.
  360.     (reduce):  New reduction <dohead><whilestmt> => <dostmt>.  Also,
  361.     when reducing <stmt><dolit>, don't change indentation.
  362.  
  363.     * indent.c (main):  In case rbrace, after parse(rbrace), set
  364.     force_nl if top of stack is dohead and ! btype_2.
  365.     (main):  Initialize noncast_mask to 0.
  366.  
  367. Mon Dec 23 18:34:11 1991  Joseph Arceneaux  (jla at hugo)
  368.  
  369.     * args.c (set_option): Recognize long options, using new struct
  370.     option_conversions, if option begins with POSIX_OPTION_PREFIX.
  371.  
  372.     * indent.c (main): Recognize "--no-profile" as well as "-npro".
  373.  
  374.     * indent.texinfo: Describe GNU style as default.  Section reworded.
  375.  
  376. Sat Dec 21 13:27:07 1991  Joseph Arceneaux  (jla at hugo)
  377.  
  378.     * indent.c (main):  In case preesc (~ line 1282), add !had_eof to
  379.     second while clause to avoid hanging in weird text (like test file
  380.     djm-torture-test/t11).
  381.  
  382.     * indent.c (main): In case rparen, (~ line 680) if cast mask was
  383.     set and is reset to zero, then set parser_state_tos->want_blank if
  384.     cast_space was set.  No longer do this (#if 0) in all cases where
  385.     (!parser_state_tos->cast_mask || cast_space).
  386.  
  387. Wed Dec  4 16:41:13 1991  Joseph Arceneaux  (jla at hugo)
  388.  
  389.     * version.h:  Version changed to be simply 1.1.4.  Comments added.
  390.  
  391. Mon Nov 25 15:16:51 1991  Joseph Arceneaux  (jla at hugo)
  392.  
  393.     * indent.c (main):  When handling decl case, don't reset
  394.     PREFIX_BLANKLINE_REQUESTED if we've just encountered the type of a
  395.     procedure delcaration.  This fixes the -bap bug for procedures
  396.     which begin with a line declaring their type, following the line with
  397.     `}' from the last procedure.
  398.  
  399. Fri Nov 22 15:26:59 1991  Joseph Arceneaux  (jla at hugo)
  400.  
  401.     * args.c: Default is now GNU style.  Original obtained by new
  402.     option "-orig".  New variable exp_orig.
  403.  
  404.     * indent.texinfo: Describe the new -ts option.  Removed the -ss
  405.     option from GNU style.
  406.  
  407. Thu Nov 21 17:50:48 1991  Joseph Arceneaux  (jla at hugo)
  408.  
  409.     * args.c: New variables `tabsize' and `exp_ts'.
  410.     * indent_globs.h: Declare `tabsize'.
  411.     * io.c (pad_output, count_spaces): Use `tabsize' to calculate padding.
  412.     * pr_comment.c (pr_comment): Use `tabsize' to compute column.
  413.  
  414.     * args.c: Removed the "-ss" option for GNU style.
  415.  
  416. Fri Sep 13 01:30:18 1991  Joseph Arceneaux  (jla at hugo)
  417.  
  418.     * indent_globs.c: New element to parser_state, `paren_depth',
  419.     which counts global paren nesting.
  420.     * indent.c: Use it in main loop to avoid setting `in_or_st' when
  421.     doing ansii prototyping.
  422.  
  423. Thu Sep 12 15:53:54 1991  Joseph Arceneaux  (jla at hugo)
  424.  
  425.     * io.c (dump_line): Initialize target_column to 0.
  426.  
  427.     * parse.c: New variable debug to control debugging output.
  428.  
  429.